<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<body>
    <h1>解决margin重叠</h1>
    <div style="overflow: hidden;">
        <p>Haha</p>
    </div>
    <p style="display: none;">Hehe</p>
    <style>
        p {
            color: red;
            background: #fcc;
            width: 200px;
            line-height: 100px;
            text-align: center;
            margin: 100px;
        }
    </style>
    <h1>清除内部浮动</h1>
    <div>

    </div>
</body>
<script>
    function shuffleArray(array) {
        return array.sort(() => Math.random() - 0.5);
    }
    const myArray = [1, 2, 3, 4, 5];
    const shuffledArray = shuffleArray(myArray);
    console.log(shuffledArray);
</script>

</html>